// 七色纺组织id为1
export const QSFORGID = 1

export const STATUSOC: { [k: number | string]: string } = {
  1: '开启中',
  0: '已关闭',
}
export const STATUSBAND: { [k: number | string]: string } = {
  1: '启用中',
  0: '已停用',
  null: '已停用',
}

export const DIS_STATUSBANDBTNTEXT: { [k: number | string]: string } = {
  0: '启用',
  1: '停用',
}

export const STATUSCONFIRMTEXT: { [k: number | string]: string } = {
  0: '否',
  1: '是',
  null: '-',
}

export const USERTYPETEXT: { [k: number | string]: string } = {
  0: '管理员',
  1: '普通账户',
}

export enum STATUSNUM {
  OPEN = 1,
  CLOSE = 0,
  PRINT = 2,
}

export const STATUSOPTIONS = [
  { label: '开启中', value: 1 },
  { label: '已关闭', value: 0 },
]

export const STATUSBANDOPTIONS = [
  { label: '启用中', value: 1 },
  { label: '已停用', value: 0 },
]
export const STATUSBANDOPTIONS_SPEC = [
  { label: '启用中', value: 1 },
  { label: '全部', value: null },
]

export enum applicationTypeEnum {
  SOP_SEVENFUN_WEB = '2', //七色纺 web
  SOP_SUPPLIER_WEB = '3', //供应商 web
  SOP_SEVENFUN_MOBILE = '4',
  SOP_SUPPLIER_MOBILE = '5',
}

export const AppListMap: Record<string, string> = {
  '2': 'SOP_7SF_WEB',
  '3': 'SOP_供应商_WEB',
  '4': 'SOP_7SF_小程序',
  '5': 'SOP_供应商_小程序',
}

export const AppListOptions = [
  { label: 'SOP_7SF_WEB', value: applicationTypeEnum.SOP_SEVENFUN_WEB },
  { label: 'SOP_供应商_WEB', value: applicationTypeEnum.SOP_SUPPLIER_WEB },
  { label: 'SOP_7SF_小程序', value: applicationTypeEnum.SOP_SEVENFUN_MOBILE },
  { label: 'SOP_供应商_小程序', value: applicationTypeEnum.SOP_SUPPLIER_MOBILE },
]

export const SupplierAppListOptions = [
  { label: 'SOP_供应商_WEB', value: applicationTypeEnum.SOP_SUPPLIER_WEB },
  { label: 'SOP_供应商_小程序', value: applicationTypeEnum.SOP_SUPPLIER_MOBILE },
]

export const AppListOptionsAndAll = [
  { label: '全部', value: '' },
  { label: 'SOP_7SF_WEB', value: applicationTypeEnum.SOP_SEVENFUN_WEB },
  { label: 'SOP_供应商_WEB', value: applicationTypeEnum.SOP_SUPPLIER_WEB },
  { label: 'SOP_7SF_小程序', value: applicationTypeEnum.SOP_SEVENFUN_MOBILE },
  { label: 'SOP_供应商_小程序', value: applicationTypeEnum.SOP_SUPPLIER_MOBILE },
]
export const TaskStatusOptions = [
  { label: '未执行', value: '0' },
  { label: '执行中', value: '1' },
  { label: '失败', value: '2' },
  { label: '部分成功', value: '3' },
  { label: '成功', value: '4' },
]
export const TaskStatusText: { [k: number | string]: string } = {
  0: '未执行',
  1: '执行中',
  2: '失败',
  3: '部分成功',
  4: '成功',
}
export const PUSH_STATE_STATUS_OPTIONS = [{ label: '推送失败', value: '4' }]
export const PUSH_STATE_STATUS_TEXT: { [k: number | string]: string } = {
  1: '待推送',
  2: '推送中',
  3: '推送成功',
  4: '推送失败',
  5: '取消',
}

export enum orgTypeEnum {
  SEVENFUN = 0, //七色纺
  SUPPLIER = 1, //供应商
}

export enum OperationLogType {
  ORGANIZATION = 'organization',
  USER = 'user',
  SUPPLIER = 'supplier',
  PURCHASE = 'purchase',
  BOXLABEL = 'box_label',
  BOXSPEC = 'box_spec',
  RESERVEINVOICE = 'reserve_invoice',
  QUALITY = 'quality',
  PURCHASEORDER = 'purchase_order',
  PRODUCTSPU = 'product_spu',
  PRODUCTCLASS = 'product_class',
  PRODUCTCOLORDETAIL = 'product_color_detail',
  PRODUCTFABRICCONFIG = 'product_fabric_config',
  PRODUCTPLAN = 'product_plan',
  PRODUCTPRESET = 'product_preset',
  PRODUCTSIZEDETAIL = 'product_size_detail',
  PRODUCTDEV = 'product_dev',
  INTENT_ORDER = 'intent_order',
  PURCHASE_OTB = 'purchase_otb',
  QUOTATION_ORDER = 'quotation_order',
}
//订单颜色状态
export const BadgeColorMap: { [k: number | string]: string } = {
  0: 'gold',
  1: 'purple',
  2: 'blue',
  3: 'green',
  4: 'volcano',
  5: 'cyan',
}
//预约发货单的颜色
export const BadgeColorDeliveryMap: { [k: number | string]: string } = {
  1: 'gold',
  2: 'purple',
  3: 'blue',
  4: 'green',
  5: 'volcano',
  6: 'cyan',
}
export const BadgeColorMapSpec: { [k: number | string]: string } = {
  1: 'cyan',
  2: 'volcano',
  3: 'blue',
  4: 'green',
}
export enum OperationPurchaseActionsType {
  SEND = 1,
  EXAMINE = 2,
  CONFIRM = 3,
  ORDER = 4,
  RETURN = 5,
  BREAK = 6,
  Cancel = 7,
}

export enum OperationContractActionsType {
  MERGE = 1,
  CLOSE = 2,
  SEND = 3,
  PRINT = 4,
  SIGN = 5,
  UP = 6,
}

export enum OperationDeliveryActionsType {
  PRINT = 1,
  PRINTNOTICE = 2,
  EXAMINE = 3,
  CANCEL = 4,
}
export enum OperationBoxmarkActionsType {
  PRINT = 1,
  SEND = 2,
  CANCEL = 3,
  DEL = 4,
  ADD = 5,
}

export enum IMPORT_FILE_ENUM {
  GOODS_PLAN_IMPORT = '3', //批量新建商品企划
  PURCHASEW_ORDER_IMPORT = '4', //批量新建采购订单
  GOODS_STYLE_IMPORT = '6', //批量新建款式
  GOODS_UPDATE_IMPORT = '12', //批量更新商品
  GOODS_XC_IMPORT = '13', //批量新建商品(现采)
  GOODS_STYLE_UPDATE_STATUS_IMPORT = '14', //批量更新订货状态
  GOODS_STYLE_UPDATE_IMPORT = '15', //批量更新款式
  GOODS_FABRIC_IMPORT = '16', //批量新建面料
  GOODS_SIZE_IMPORT = '17', //批量配置品类尺码组
  PURCHASEW_PROCESS_IMPORT = '18', //批量更新生产进度
  PURCHASEW_GOODS_IMPORT = '19', // 采购明细批量导入
  PURCHASEW_DELIVERYTIME_IMPORT = '20', //批量填写供应链交期
  EXPAND_PENETRATION_IMPORT = '21', //扩渗透计划量
  REORDER_DISPLAY_IMPORT = '22', //基础陈列量导入
  IMPTINTENTDER_IMPORT = '23', //批量导入意向订单
  IMPTINTREPLY_IMPORT = '24', //供应链批量回复
  RETURNCYCLE_IMPORT = '25', //返单周期/起订量导入
  LATEST_IMPORT = '26', //最晚到货时间/到货异常天数
  GOODS_FRANCHISE_IMPORT = '27', //导入加盟信息
  GOODS_WEIGHT_IMPORT = '28', //导入净重毛重
  GOODS_INFO_TEMPLATE_IMPORT = '29', //批量导入商品信息模板
  GOODS_STYLE_UPDATE_STATUS_METTING_IMPORT = '30', //批量更新订货会状态
  GOODS_OTB_IMPORT = '31', //批量更新OTB额度
  GOODS_STYLESPEC_UPDATE_IMPORT = '32', //批量更新操作
  BATCH_UPDATE_STYLE_FABRIC = '33', //批量更新款式关联面料
  BATCH_UPDATE_GOODS_FABRIC = '34',
  BATCH_CREATE_SPOTDEV_GOODS = '35', //批量新建款式草稿(现采)
}
